package cn.wolfcode.trip.base.domain;


import lombok.Getter;
import lombok.Setter;

/**
 * 注册用户
 */
@Getter@Setter
public class User extends BaseDomain {
    public static final Integer GENDER_SECRET=-1;
    public static final Integer GENDER_MAN=1;
    public static final Integer GENDER_WOMAN=0;

    //邮箱
    private String email;
    //昵称
    private String nickName;
    //密码
    private String password;
    //所在地
    private String place;
    //头像
    private String headImgUrl;
    //性别
    private Integer gender=GENDER_SECRET;
    //封面
    private String coverImgUrl;
    //签名
    private String sign;

    public String getGenderName() {
        String msg="保密";
        if (gender.equals(User.GENDER_MAN)) {
            msg="男";
        }else if (gender.equals(User.GENDER_WOMAN)){
            msg="女";
        }
        return msg;
    }
}